package com.linkoog.devtools.http.request.http_request.request_body.body;

import com.intellij.ui.components.JBPanelWithEmptyText;
import com.linkoog.devtools.http.request.common.request_body.NoneRequestBody;
import com.linkoog.devtools.http.request.http_request.request_body.BodyPanel;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class NoneBodyPanel extends JBPanelWithEmptyText implements BodyPanel<NoneRequestBody> {

    public NoneBodyPanel() {
        withEmptyText("This request dose not have a body");
    }

    public void resetRequestBody(@NotNull NoneRequestBody requestBody) {
    }

    public @NotNull NoneRequestBody buildRequestBody() {
        return NoneRequestBody.INSTANCE;
    }

    @Override
    public JPanel getPanel() {
        return this;
    }
}
